package com.cszjzx.member.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import com.cszjzx.member.po.Stage;

public interface StageDao {
	
	/**
	 * 更改阶段名
	 * @param s
	 * @throws SQLException 
	 */
	void update(Stage s) throws SQLException;
	
	/**
	 *  增加字段
	 * @param s
	 * @throws SQLException 
	 */
    public void add(Stage s) throws SQLException; 
    
    /**
     * 根据id删除字段
     * @param id
     * @throws SQLException 
     */
    public void delete(int id) throws SQLException;  
    
    /**
     * 查找字段
     * @return 字段list
     * @throws IOException 
     * @throws SQLException 
     * @throws ClassNotFoundException 
     */
    public List<Stage> findAll() throws ClassNotFoundException, SQLException, IOException; 
}
